package com.linkage.bookshop.repository;



import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.linkage.bookshop.model.Book;
import com.linkage.bookshop.model.Comment;

@Repository
public interface CommentRepository {
	public Book selectBookById(int bookId);
	 public int insert(Comment comment);
	 public int delete(int commentId);
     public Comment selectByCommentId(int commentId);
	 public  List<Comment> findByBookId(int bookId);
	 
	 public List<Comment> selectBookComment(@Param("bookId") int bookId, @Param("offset") int offset, @Param("rows") int rows);
}
